package com.jihu.rpc.server.config;

import com.huge.rpc.codec.Decoder;
import com.huge.rpc.codec.Encoder;
import com.huge.rpc.codec.JsonDecoder;
import com.huge.rpc.codec.JsonEncoder;
import com.huge.rpc.server.TransportServer;
import com.huge.rpc.server.impl.HttpTransportServer;
import lombok.Data;

/**
 * server 配置
 * @author jihu
 * @date 2020/10/13
 */
@Data
public class RpcServerConfig {

    private Class<? extends TransportServer> transportCLss = HttpTransportServer.class;
    private Class<? extends Encoder> encodeClass = JsonEncoder.class;
    private Class<? extends Decoder> decoderClass = JsonDecoder.class;
    private int port = 3000;


}
